import api from '../utils/api';

export async function queryDataCenter(param) {
  return api.post('/basic/dataCenter/queryAll', {
    data: JSON.stringify(param),
  });
}

export async function queryRoomList() {
  return api.post('/basic/room/queryRoomList');
}

export async function queryAllRoomList() {
  return api.post('/basic/room/queryAllRoomList');
}

export async function queryList(param) {
  return api.post('/basic/room/queryList', {
    data: JSON.stringify(param),
  });
}

export async function queryRoomListTree(param) {
  return api.post('/basic/room/queryRoomListTree', {
    data: JSON.stringify(param),
  });
}

export async function qryRackTree(param) {
  return api.post('/asset/qryRackTree', {
    data: JSON.stringify(param),
  });
}

export async function queryRoomU(param) {
  return api.post('/basic/room/queryRoomU', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/basic/room/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/basic/room/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/basic/room/edit', {
    data: JSON.stringify(param),
  });
}

export async function queryRoomListByParams(param) {
  return api.post('/basic/room/queryRoomListByParams', {
    data: JSON.stringify(param),
  });
}


